package com.cn.dream_order_server.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;


@Data
public class OrderEsPOJO {

    @Id
    @Field(type =FieldType.Text)
    private String orderId;
    @Field(index = false)
    private String userId;
    @Field(index = false)
    private String siteId;
    @Field(index = false)
    private String paytypeId;
    @Field(type = FieldType.Keyword)
    private Date placeTime;
    @Field(index = false)
    private Date payTime;
    @Field(index = false)
    private String payMode;
    @Field(index = false)
    private Integer orderTotal;
    @Field(index = false)
    private String serialNumber;
    @Field(index = false)
    private Integer discountsMoney;
    @Field(index = false)
    private String activitytypeId;
    @Field(type = FieldType.Keyword)
    private String ordertypeId;
    @Field(index = false)
    private String orderOther1;//物流id
    @Field(index = false)
    private String orderOther2;//图片
    @Field(type = FieldType.Keyword)
    private Integer orderOther4;//管理员查看订单状态
    @Field(index = false)
    private Integer orderOther5;
    @Field(index = false)
    private byte[] orderOther3;


}
